package com.jiangSheng.mall.app.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jiangSheng.mall.app.bean.ReceiverAddress;
import com.jiangSheng.mall.app.dao.ReceiverAddressMapper;
import com.jiangSheng.mall.app.services.ReceiverAddressServices;
@Transactional
@Service
public class ReceiverAddressServicesImpl implements ReceiverAddressServices{

	@Autowired
	private ReceiverAddressMapper receiverAddressMapper;
	
	@Override
	public int add(ReceiverAddress address) {
		return receiverAddressMapper.add(address);
	}

	@Override
	public int alter(ReceiverAddress address) {
		return receiverAddressMapper.alter(address);
	}

	@Override
	public int remove(Integer id) {
		return receiverAddressMapper.remove(id);
	}

	@Override
	public List<ReceiverAddress> getList() {
		return receiverAddressMapper.getList();
	}

	@Override
	public ReceiverAddress getOneAddress(Integer id) {
		return receiverAddressMapper.getOneAddress(id);
	}

}
